import { WebsiteConfig, PermissionConfig } from "maishu-chitu-admin";

import { merchantRoleId } from "../merchant";
import { menuItemIds as shopMenuItemIds } from "../shop";

export let stationPath = "/weixin/"
export let projectName = "weixin";
export let baseURL = "http://web.alinq.cn/weixin";
export let permissions: PermissionConfig = {}
permissions[`${stationPath}*`] = { roleIds: [merchantRoleId] };

let websiteConfig: WebsiteConfig = {
    requirejs: {
        shim: {

        },
        paths: {
            "common/static": "/node_modules/common/static",
        }
    },
    menuItems: [
        {
            id: "5C28607E-C29A-4AD8-8891-219A4F9698E6", name: "微信设置", sortNumber: 50,
            path: "#setting", roleIds: [merchantRoleId], parentId: shopMenuItemIds.setting,
        },
        // {
        //     id: "2D3B31FE-9B01-45DA-9590-57D1BB07767E", name: "用户列表", sortNumber: 50,
        //     path: "#user-list", roleIds: [merchantRoleId], parentId: shopMenuItemIds.user,
        // },
    ]
}

export default websiteConfig;